using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeFireBallVolley:Upgrade {

	protected override void BurstDecidingEventHandler(object _sender,BurstDecidingEventArgs e) {
		base.BurstDecidingEventHandler(_sender,e);
		e.stat.shots.AddFirst("weapon0");
		e.stat.shots.AddFirst("weapon0");
		shotNumber=0;
	}
	int shotNumber = 0;
	protected override void ShootingEventHandler(object _sender,ShootEventArgs e) {
		base.ShootingEventHandler(_sender,e);
		float chance = shotNumber*0.3f+0.1f;
		shotNumber++;
		if(!Utility.Chance(chance)) return;
		e.stat.projectile=ProjectileData.nameToData["FireBall"];
	}
}
